@import "./var.scss";
.common-component {
  // 二级导航
  .sub-nav {
    margin-bottom: 5px;
    letter-spacing: -3px;
    font-weight: normal;
    a {
      display: inline-block;
      letter-spacing: 0;
      font-size: 14px;
      height: 34px;
      line-height: 32px;
      border-bottom: 3px solid #e5e5e5;
      background: #fff;
      margin-right: 3px;
      padding: 0 15px;
      text-align: center;
      color: #000;
      &:hover {
        transition: auto;
        background: $mainColor;
        color: #fff;
      }
    }
  }

  // 热门推荐（导航下面）
  .hot-recommend {
    position: relative;
    padding-left: 110px;
    margin-bottom: 10px;
    border: 2px solid #32a7f7;
    height: 50px;
    font-size: 16px;
    font-family: "microsoft yahei";
    .hot-recommend-title {
      position: absolute;
      padding-left: 50px;
      left: 0;
      top: 0;
      width: 135px;
      font-size: 18px;
      height: 46px;
      line-height: 46px;
      background: #32a7f7;
      color: #fff;
      span {
        position: absolute;
        left: 10px;
        top: 8px;
        font-size: 28px;
      }
    }
    a {
      margin-left: 25px;
      display: inline-block;
      overflow: hidden;
      color: #32a7f7;
      position: relative;
      line-height: 46px;
      transition: color 0.5s;
      &:first-of-type {
        margin-left: 50px;
      }
      &:hover {
        color: $mainColor;
        transition: color 0.5s;
      }
      span {
        font-size: 14px;
      }
    }
  }

  // 无数据
  .empty {
    position: relative;
    padding: 30px 40px 0;
    color: #000;
    height: 230px;
    border-bottom: 2px solid #e5e5e5;
    background-color: #fff;
    font-size: 14px;
    line-height: 25px;
    h3 {
      font-size: 18px;
      font-weight: bold;
      margin-bottom: 20px;
      & + p {
        font-weight: bold;
      }
    }
    a {
      display: block;
      width: 130px;
      height: 34px;
      border-bottom: 1px solid $mainColor;
      background: $mainColor;
      color: #fff;
      text-align: center;
      line-height: 34px;
      margin-top: 20px;
      &:hover {
        opacity: 0.8;
      }
    }
    span {
      position: absolute;
      right: 70px;
      top: 65px;
      font-size: 90px;
      color: #ff7878;
    }
  }
}

// 热门景区/线路（右侧）
.hot-pro-list {
  background: #fff;
  padding: 10px;
  margin-bottom: 10px;
  border-bottom: 3px solid #e5e5e5;
  h2 {
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    color: $mainColor;
    font-weight: normal;
    margin-bottom: 5px;
    position: relative;
  }
  & + .pro-list {
    margin-top: 10px;
  }
  .item {
    padding-bottom: 10px;
    img {
      width: 185px;
      height: 125px;
    }
    h3 {
      margin-bottom: 0;
      line-height: 15px;
      height: 35px;
      overflow: hidden;
      padding: 5px 0 2px 0;
      color: #4e4e4e;
      font-size: 12px;
      &:hover {
        color: $mainColor;
        transition: all 0.3s;
      }
    }
    .price {
      padding: 2px 10px 0 0;
      text-align: left;
      height: 25px;
      line-height: 25px;
      color: $mainColor;
      font-size: 12px;
      span {
        margin-left: 3px;
        font-size: 12px;
      }
      em {
        font-size: 18px;
      }
    }
  }
}

// 目的地，相关推荐
.destination-relate-wrap {
  margin-top: 10px;
  padding: 10px 25px 15px;
  background-color: #fff;
  h2 {
    height: 44px;
    line-height: 44px;
    font-size: 20px;
    font-weight: normal;
    margin-bottom: 5px;
    position: relative;
    a{
      position: absolute;
      right: 0;
      font-size: 14px;
      color: $mainColor;
      &:hover{
        text-decoration: underline;
      }
    }
    span{
      display: inline-block;
      transform: rotate(-90deg);
      vertical-align: 1px;
      font-size: 12px;
    }
  }
  .item {
    transition: all 0.3s;
    outline: 1px solid #f6f6f6;
    &:hover {
      transition: all 0.3s;
      transform: translateY(-4px);
      box-shadow: 2px 2px 10px 3px rgba(0, 0, 0, 0.1);
    }
  }
  .row {
    .item {
      width: 280px;
      display: inline-block;
      margin-right: 10px;
      color: #252525;
      font-size: 14px;
      &:last-of-type {
        margin-right: 0;
      }
    }
    h3 {
      height: 50px;
      padding: 0 10px;
      font-size: 16px;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      text-overflow: ellipsis;
      &:hover {
        color: $mainColor;
      }
    }
    .price {
      margin-bottom: 15px;
      padding: 0 10px;
      color: #fd5e0d;
      em {
        margin-right: 2px;
        font-size: 20px;
        font-weight: 600;
      }
      span {
        color: #333;
      }
    }
    img {
      margin-bottom: 10px;
      width: 100%;
      height: 200px;
    }
  }
  .column {
    .item {
      position: relative;
      height: 220px;
      & + .item {
        margin-top: 10px;
      }
    }
    img {
      width: 100%;
      height: 220px;
    }
    .image {
      display: block;
      position: absolute;
      left: 0;
      top: 0;
      overflow: hidden;
      width: 300px;
      height: inherit;
    }
    .location {
      position: absolute;
      bottom: 0;
      left: 0;
      padding: 0 10px;
      width: 300px;
      height: 36px;
      line-height: 36px;
      color: #fff;
      background-color: rgba(0, 0, 0, 0.4);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      & > span {
        margin-right: 3px;
        color: #f68709;
        font-size: 16px;
      }
    }
    .info {
      padding: 15px 50px 0 325px;
      h3 > a {
        font-size: 16px;
        line-height: 22px;
        display: block;
        height: 44px;
        overflow: hidden;
        color: #222;
        font-weight: normal;
        &:hover {
          color: $mainColor;
        }
      }
      .desc {
        height: 44px;
        margin-bottom: 10px;
        color: #7c7c7c;
        line-height: 20px;
        overflow: hidden;
      }
      .labels {
        color: #919191;
        padding-bottom: 10px;
        span {
          display: inline-block;
          line-height: 24px;
          padding: 0 10px;
          border: 1px solid #999;
          & + span {
            margin-left: 10px;
          }
        }
      }
      .price {
        border-top: 1px dashed #ccc;
        color: $mainColor;
        line-height: 35px;
        padding-top: 10px;
        em {
          font-size: 24px;
          margin-right: 3px;
        }
        a {
          display: inline-block;
          height: 34px;
          line-height: 34px;
          background: $mainColor;
          color: #fff;
          padding: 0 24px;
          margin-left: 10px;
          vertical-align: top;
          &:hover {
            text-decoration: underline;
          }
        }
      }
    }
  }
}

// 优惠券弹框
.coupon-popover {
  position: fixed;
  inset: 0;
  z-index: 1002;
  height: 100%;
  background-color: #00000073;
  .wrapper{
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    width: 400px;
    min-height: 300px;
    padding: 65px 30px 20px;
    border-radius: 10px;
    background: linear-gradient(#ed5b4b, #bf3638);
    &>span{
      position: absolute;
      right: -40px;
      top: -40px;
      font-size: 36px;
      color: #fff;
      &:hover{
        color: $mainColor;
      }
    }
    .top,.left,.right{
      position: absolute;
      z-index: -1;
    }
    .top{
      width: 140px;
      top: -80px;
      left: 50%;
      transform: translateX(-50%);
    }
    .left{
      width: 70px;
      left: -30px;
      top: 50%;
      transform: translateY(-50%);
    }
    .right{
      width: 40px;
      right: -10px;
      top: 65%;
    }
  }
  .content{
    font-size: 14px;
    .item{
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: #fffdf0;
      border-radius: 5px;
      &+.item{
        margin-top: 10px;
      }
      &>div{
        p{
          margin: 0;
          font-size: 28px;
          &.gray{
            font-size: 14px;
            color: #8b8b8b;
          }
          &>span{
            font-size: 16px;
          }
        }
        h3{
          font-size: 16px;
        }
        &:first-child{
          width: 35%;
          color: #e75f51;
          font-size: 20px;
          text-align: center;
        }
        &:last-child{
          width: 65%;
          line-height: 1.2;
          padding: 30px 15px;
          border-left: 1px dashed #ddd;
        }
      }
    }
  }
  .operation{
    margin-top: 20px;
    text-align: center;
    .receive-btn,
    .more-btn{
      display: block;
      border: none;
      outline: none;
      margin: 0 auto;
    }
    .receive-btn{
      width: 70%;
      margin-bottom: 10px;
      padding: 0;
      line-height: 44px;
      font-size: 18px;
      color: #fff;
      background: linear-gradient(#f3cb40, #fea704);
      box-shadow: 0 3px 3px 1px rgba(0, 0, 0, 0.1);
      border-radius: 5px;
      &:hover{
        opacity: 0.9;
      }
      &[disabled]{
        background: #AAA;
        cursor: not-allowed;
      }
    }
    .more-btn{
      color: rgba(255,255,255,0.7);
      background: none;
      &:hover{
        color: rgba(255,255,255,0.6);
      }
    }
  }
}